package com.weijian.dal.dto.cart;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车商品数据传输对象
 * 
 * @author weijian
 */
@Data
public class CartItemDTO {
    private Long id;
    private Long userId;
    private Long courseId;
    private String courseTitle;
    private String courseCover;
    private BigDecimal coursePrice;
    private Integer quantity;
    private Boolean selected;
    private Integer courseLevel;
    private Integer courseDuration;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}